﻿using Basic.WxModel.DB;
using WeDonekRpc.SqlSugar;

namespace Basic.WxRepository.lmpl
{
    internal class WxPlatformRepository : WxBasicRepository<DBWxPlatform, long>, IWxPlatformRepository
    {
        public WxPlatformRepository (ISqlClientFactory factory) : base(factory)
        {
        }

        public Result FindPlatform<Result> (string appId) where Result : class, new()
        {
            return base.Get<Result>(c => c.AppId == appId);
        }

    }
}
